/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 说明：
 * Entity Name 用户访问记录
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TUserRevisit")
public class TUserRevisit implements Serializable{

	private static final long serialVersionUID = 1L;

	private String VisitID;//访问记录编号CHAR(15) PK

	private String Situation;//访问记录VARCHAR(10240)

	private byte Satisfy;//用户满意度TINYINT1为差 2为一般 3为满意 4为比较满意 5为非常满意

	private String Operator;//操作人CHAR(15)

	private Date HappenTime;//操作时间DATETIME
	
	private TUser TUser;//用户
	@Id
	@Column(name = "VisitID", length=15)
	public String getVisitID() {
		return VisitID;
	}

	public void setVisitID(String visitID) {
		VisitID = visitID;
	}

	@Column(name = "Situation", length=1024)
	public String getSituation() {
		return Situation;
	}

	public void setSituation(String situation) {
		Situation = situation;
	}

	@Column(name = "Satisfy")
	public byte getSatisfy() {
		return Satisfy;
	}

	public void setSatisfy(byte satisfy) {
		Satisfy = satisfy;
	}

	@Column(name = "Operator", length=15)
	public String getOperator() {
		return Operator;
	}

	public void setOperator(String operator) {
		Operator = operator;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime", nullable = false, length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}
	@ManyToOne
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return TUser;
	}

	public void setTUser(TUser tUser) {
		TUser = tUser;
	}
}
